package com.sunl.mall.ali.mq.model.transaction;

import com.sunl.mall.ali.mq.model.RocketMqMessageContext;
import com.sunl.mall.common.api.util.SystemClock;

import java.util.Properties;

public class RocketMqTransactionMessageContext extends RocketMqMessageContext {
    /**
     * 系统时间
     */
    private final long currentSysTimeMil = SystemClock.currentTimeMillis();

    public RocketMqTransactionMessageContext(String topic, Properties userProperties, Properties systemProperties) {
        super(topic, userProperties, systemProperties);
    }

    public long getCurrentSysTimeMil() {
        return this.currentSysTimeMil;
    }
}
